import Vue from 'vue'
import App from './App'
import uView from 'uview-ui'
import store from './store' // store
import plugins from './plugins' // plugins
import dayjs from 'dayjs'
import {
	isEmpty,
	isNotEmpty,
	convertUnitmeasure,
	saveCache,
	copyProperties,
	toast
} from './utils/common.js'
import './permission' // permission
import './dict'
Vue.use(uView)
Vue.use(plugins)

Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$dayjs = dayjs
Vue.prototype.$isEmpty = isEmpty
Vue.prototype.$isNotEmpty = isNotEmpty
Vue.prototype.$convertUnitmeasure = convertUnitmeasure
Vue.prototype.$saveCache = saveCache
Vue.prototype.$copyProperties = copyProperties
Vue.prototype.$toast = toast

App.mpType = 'app'

const app = new Vue({
	...App
})

app.$mount()